<?php

class Search_Model extends CI_Model 
{
    function __construct()
    {
        parent::__construct();
    }
	
	function get_product_by_search($keyword){
		$query = "SELECT * FROM products WHERE product_title LIKE ".$this->db->escape('%'.$keyword.'%');
		return $this->db->query($query);
	}
}